import React, { Component } from "react"
import { HashRouter, Route, Switch } from 'react-router-dom'
import { connect } from "react-redux"

import MainNav from "../main-nav/main-nav"
import Register from "../register/register"
import Login from "../login/login"


export default class App extends Component {

  render() {
    return (
      <HashRouter>
        <Switch>
          <Route path='/register' component={Register}></Route>
          <Route path='/login' component={Login}></Route>
          <Route component={MainNav}></Route>
        </Switch>
      </HashRouter>
    )
  }
}
